<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'main.jsp' starting page</title>

		<link rel="stylesheet" href="Css/Base.css" type="text/css" />
		<script src="jquery-1.1.3.pack.js"></script>
		<script>
	$(document).ready(function(){
		$("li.item>ol").hide();
		$("li.item").click(function(){
			$("ol",this).slideDown("fast");//$("ol",this): 寻找this中的ol.
		});
	});
	</script>
		<style>
body {
	font-family: Arial;
	font-size: 16px;
}

ol {
	list-style: none;
	margin: 0;
	padding: 0;
}

li.item {
	float: left;
	width: 150px;
	background: #016FD0;
	margin: 5px;
}

li.item a {
	font-size: 18px;
	color: #FFF;
	margin: 4px;
}

li.item ol {
	background: #FFF;
	margin: 3px;
}

li.item ol a {
	font-size: 16px;
	color: #000;
	margin: 0;
}
</style>
	</head>

	<body>
		<div id="container">
			<div id="Globallink"></div>
			<div id="center">
				<!--   <div id="left">-->
				<!--   <p><a href="createPro.jsp" target= "mainframe"><strong>创建新项目</strong></a></p>-->
				<!--   <iframe name="leftframe" width="220" height="550" src="login.jsp"-->
				<!--                frameborder="2" scrolling="yes" class="style1">-->
				<!--                -->
				<!--                -->
				<!--                </iframe>-->
				<!--   </div>-->
				<!--   <div id = "main">-->
				<!--   <iframe name="mainframe" width="750" height="100%" float = "left"src=""-->
				<!--                frameborder="2" scrolling="yes" class="style1">-->
				<!--                -->
				<!--                -->
				<!--                </iframe>-->
				<!--   </div>-->
				<table>
					<tr>
						<td width="220" height="550" valign="top" align="center">
							<p>
								<a href="CreatePro.jsp" target="mainframe"><strong>创建新项目</strong>
								</a>
							</p>
							<ol class="menu">

								<s:iterator value="tables" id="project">
									<li class="item">+&nbsp;
										<a href="listTables.action?projectName=${project.key }" target="mainframe">
											<s:property value="#project.key" />
										</a>	
										<ol>
											<s:iterator value="#project.value" id="table">
												<li>
													|-
													<a href="listData.action?sheetName=${table}&projectName=${project.key}" target="mainframe">
														<s:property value="table" />
													</a>
												</li>
											</s:iterator>
										</ol>
									</li>
								</s:iterator>
							</ol>
						</td>
						<td>
							<iframe name="mainframe" width="750" height="100%" float="left"
								src="" frameborder="2" scrolling="yes" class="style1">

							</iframe>

						</td>
					</tr>
				</table>
			</div>
		</div>
		<div id="Footnote">
			&nbsp;&nbsp;&nbsp;&nbsp; ustc.java @ 2010
		</div>

		</div>
	</body>
</html>
